<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title><%= @page_title || "Emporium" %></title>
    <%= stylesheet_link_tag "style" %>
    <%= javascript_include_tag :defaults %>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div id="header">
      <h1 id="logo">Emporium&trade;</h1>
      <h2 id="slogan">Books on Rails</h2>
    </div>
    <div id="menu">
      <ul>
        <li><a href="/admin/author"><%=t :authors %></a>&nbsp;|&nbsp;</li>
        <li><a href="/admin/publishers"><%=t :publishers %></a>&nbsp;|&nbsp;</li>
        <li><a href="/admin/books"><%=t :books %></a>&nbsp;|&nbsp;</li>
        <li><a href="/"><%=t :catalog %></a>&nbsp;|&nbsp;</li>
        <li><a href="/about"><%=t :about %></a>&nbsp;|&nbsp;</li>
        <li><a href="?locale=en">en</a>&nbsp;|&nbsp;</li>
        <li><a href="?locale=lv">lv</a>&nbsp;</li>
      </ul>
    </div>
    <div id="content">
      <%= "<h1>#{@page_title}</h1>" if @page_title %>
      <% if flash[:notice] %>
        <div id="notice">
          <%= flash[:notice] %>
        </div>
      <% end %>
      <%= yield %>
    </div>
    <% if @cart %>
      <div id="shopping_cart">
        <%= render :partial => "cart/cart" %>
      </div>
      <div id="shopping_cart">
        <%= render :partial => "cart/cart" %>
      </div>
      <%= drop_receiving_element("shopping_cart", :url =>
          { :controller => "cart", :action => "add" }) %>
    <% end %>
    <div id="footer"> &copy; 2009 Emporium
    </div>
  </body>
</html>